package com.ruoyi.mobile.model.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 用户对象 user
 * 
 * @author ruoyi
 * @date 2022-08-12
 */
public class UserVo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Integer id;

    /** 用户openid */
    private String openid;

    /** 用户手机号 */
    private String phone;

    /** 昵称 */
    private String nickname;

    /** 头像 */
    private String avatar;

    /** 性别（1|男，2|女） */
    private String sex;

    /** 出生时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date birthday;

    private String area;

    private String areaCode;

    private String address;

    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date operationTime;

    /** 体脂率 */
    private BigDecimal fatPercent;

    /** 累计打卡天数 */
    private Integer checkinCount;

    /** 坚持打卡天数 */
    private Integer goonCount;

    /** 绑定手表状态(1|已绑定, -1|未绑定) */
    private String bindFlag;

    /** 手表SN */
    private String sn;

    private String huaweiAuthorizeComplete;


    /** 帐号状态(0正常 1停用) */
    private String status;

    public void setId(Integer id)
    {
        this.id = id;
    }

    public Integer getId()
    {
        return id;
    }
    public void setOpenid(String openid) 
    {
        this.openid = openid;
    }

    public String getOpenid() 
    {
        return openid;
    }
    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone() 
    {
        return phone;
    }
    public void setNickname(String nickname) 
    {
        this.nickname = nickname;
    }

    public String getNickname() 
    {
        return nickname;
    }
    public void setAvatar(String avatar) 
    {
        this.avatar = avatar;
    }

    public String getAvatar() 
    {
        return avatar;
    }
    public void setCheckinCount(Integer checkinCount) 
    {
        this.checkinCount = checkinCount;
    }

    public Integer getCheckinCount() 
    {
        return checkinCount;
    }
    public void setGoonCount(Integer goonCount) 
    {
        this.goonCount = goonCount;
    }

    public Integer getGoonCount() 
    {
        return goonCount;
    }
    public void setBindFlag(String bindFlag) 
    {
        this.bindFlag = bindFlag;
    }

    public String getBindFlag() 
    {
        return bindFlag;
    }
    public void setSn(String sn) 
    {
        this.sn = sn;
    }

    public String getSn() 
    {
        return sn;
    }

    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    public String  getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    public String getArea() {
        return area;
    }

    public void setArea(String area) {
        this.area = area;
    }

    public String getAreaCode() {
        return areaCode;
    }

    public void setAreaCode(String areaCode) {
        this.areaCode = areaCode;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getHuaweiAuthorizeComplete() {
        return huaweiAuthorizeComplete;
    }

    public void setHuaweiAuthorizeComplete(String huaweiAuthorizeComplete) {
        this.huaweiAuthorizeComplete = huaweiAuthorizeComplete;
    }

    public Date getOperationTime() {
        return operationTime;
    }

    public void setOperationTime(Date operationTime) {
        this.operationTime = operationTime;
    }

    public BigDecimal getFatPercent() {
        return fatPercent;
    }

    public void setFatPercent(BigDecimal fatPercent) {
        this.fatPercent = fatPercent;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("openid", getOpenid())
            .append("phone", getPhone())
            .append("nickname", getNickname())
            .append("avatar", getAvatar())
            .append("checkinCount", getCheckinCount())
            .append("goonCount", getGoonCount())
            .append("bindFlag", getBindFlag())
            .append("sn", getSn())
            .append("status", getStatus())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
